//
//  YHLoopScrollView.h
//  cunli
//
//  Created by cunli.cn on 15/9/17.
//  Copyright (c) 2015年 cunli.cn. All rights reserved.
//

#import <UIKit/UIKit.h>

#define YHLoopAnimatedTime 3 //动画时间
#define YHCurrentPageIndicatorTintColor [UIColor whiteColor]
#define YHPageIndicatorTintColor [UIColor grayColor]

@protocol YHLoopScrollViewDelegate <NSObject>
@optional
//选中某张轮播图触发的方法，索引从1开始
- (void)yhLoopScrollView:(UIScrollView *)loopScrollView didSelectWithIndex:(NSInteger)index;
@end

@interface YHLoopScrollView : UIView <UIScrollViewDelegate>
@property (strong, nonatomic)UIScrollView *loopScrollView;
@property (strong, nonatomic)UIPageControl *pageControl;
@property (strong, nonatomic)NSMutableArray *imagesGroup;
@property (assign, nonatomic)id <YHLoopScrollViewDelegate>yhLoopScrollViewDelegate;

@end

